import Request from '@/utils/requset.js'
import operate from '@/common/operate.js'
let request = new Request().http

// 科目列表
export const subjectList = function(data) {
	return request({
		url: "/api/Index/subject_list",
		method: "GET",
	})
}

// 章节列表
export const chapterList = function(data) {
	return request({
		url: "/api/Question/chapter_list",
		method: "GET",
		data: data
	})
}

// 题目列表
export const Question = function(data) {
	return request({
		url: "/api/Question/list",
		method: "GET",
		data: data
	})
}

// 提交答案
export const submitQuestion = function(data) {
	return request({
		url: "/api/Question/submit_question",
		method: "POST",
		data: data
	})
}

// 错题列表
export const wrongQuestion = function(data) {
	return request({
		url: "/api/Question/wrong_question",
		method: "POST",
		data: data
	})
}

// 五道错题列表
export const wrongInfo = function(data) {
	return request({
		url: "/api/Question/wrong_list",
		method: "GET",
		data: data
	})
}

// 提交五道错题答案
export const submitWrongQuestion = function(data) {
	return request({
		url: "/api/Question/submit_wrong_question",
		method: "POST",
		data: data
	})
}

// 文字识别
export const identifyText = function(data) {
	return request({
		url: "/api/Identify/identify",
		method: "POST",
		data: data
	})
}